import request from "@/utils/request";

export function getList(query) {
  return request({
    url: `/api/tag/select`,
    method: "get",
    params: query,
  });
}

export const deleteSingle = (id) => {
  return request({
    url: `/api/tag/${id}`,
    method: "delete",
  });
};

// 新增文件
export const confirmPost = (data) => {
  return request({
    url: `/api/tag`,
    method: "post",
    data,
  });
};

// 新增文件
export const confirmPatch = (id, data) => {
  return request({
    url: `/api/tag/${id}`,
    method: "patch",
    data,
  });
};
